using System;
using Gtk;

public partial class MainWindow: Gtk.Window
{		
	public MainWindow (): base (Gtk.WindowType.Toplevel)
	{
		Build ();
		gradientbutton1.Image=Gdk.Pixbuf.LoadFromResource("Kodre.GtkWidgets.Test.emblem-new.png");
		gradientbutton1.ImageAllign= Kodre.GtkWidgets.Allign.MiddleLeft;
		gradientbutton1.TextAllign= Kodre.GtkWidgets.Allign.MiddleCenter;
		gradientbutton1.GradientOrientation= Kodre.GtkWidgets.GradientOrientation.Vertical;
		gradientbutton1.Text="      blabla";
		gradientbutton1.Font="Arial";
		gradientbutton1.FontSize=14;
		
		gradientbutton2.Image=Gdk.Pixbuf.LoadFromResource("Kodre.GtkWidgets.Test.emblem-new.png");
		gradientbutton2.ImageAllign= Kodre.GtkWidgets.Allign.MiddleLeft;
		gradientbutton2.TextAllign= Kodre.GtkWidgets.Allign.TopCenter;
		gradientbutton2.GradientOrientation= Kodre.GtkWidgets.GradientOrientation.Horizontal;
		gradientbutton2.Text="karneki";
		gradientbutton2.Font="Arial";
		gradientbutton2.FontSize=11;
		
		gradientbutton3.Image=Gdk.Pixbuf.LoadFromResource("Kodre.GtkWidgets.Test.emblem-new.png");
		gradientbutton3.ImageAllign= Kodre.GtkWidgets.Allign.MiddleLeft;
		gradientbutton3.TextAllign= Kodre.GtkWidgets.Allign.MiddleCenter;
		gradientbutton3.GradientOrientation= Kodre.GtkWidgets.GradientOrientation.Vertical;
		gradientbutton3.Text="dasd";
		gradientbutton3.Font="Arial";
		gradientbutton3.FontSize=14;
	}
	
	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}

	protected virtual void OnGradientbutton1Pressed (object sender, System.EventArgs e)
	{
	}

	protected virtual void OnButton1Clicked (object sender, System.EventArgs e)
	{
		gradientbutton1.TextAllign = Kodre.GtkWidgets.Allign.BottomRight;
		gradientbutton1.Text="tralala    ";
	}
}